<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns:jsp="http://java.sun.com/JSP/Page"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:c="http://java.sun.com/jstl/core"
	xmlns:fn="http://java.sun.com/jsp/jstl/functions"
	xmlns:t="http://myfaces.apache.org/tomahawk"
	xmlns:rich="http://richfaces.org/rich">

	<ui:composition>
		<c:if test="${empty label}">
			<c:set var="label" value="${fieldName}" />
		</c:if>

		<table style="width: 100%;" align="center">
			<tr align="left">
				<td align="right" style="width: 30%;">
					<h:outputLabel id="#{fieldName}Label" value="${label}"
						for="#{fieldName}" style="text-align: right;width: 100%; " />
				</td>
				<td align="left" style="width: 70%;">
					<table style="width: 100%;">
						<tr>
							<td style="width: 100%;">
								<ui:insert />
							</td>

						</tr>
						<tr>
							<td style="width: 100%;">


								<rich:message for="#{fieldName}">
									<f:facet name="passedMarker">
										<h:graphicImage value="/imagenes/ok.gif" />
									</f:facet>
									<f:facet name="errorMarker">
										<h:graphicImage value="/imagenes/delete_edit.gif" />
									</f:facet>
								</rich:message>

							</td>
						</tr>
					</table>
				</td>

			</tr>
		</table>

	</ui:composition>
	<!-- valores requeridos

	fieldName
	
 -->

</html>
